package com.team5.service.impl;

import com.team5.entity.RFRange;
import com.team5.mapper.RFRangeMapper;
import com.team5.service.RFRangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RFRangeServiceImpl implements RFRangeService {
    @Autowired
    private RFRangeMapper mapper;
    @Override
    public RFRange findById(Integer id) {
        return mapper.findById(id);
    }

    @Override
    public RFRange[] findAll() {
        return mapper.findAll();
    }
    @Override
    public List<RFRange> findTopGainers() {
        return mapper.findTopGainers();
    }
    @Override
    public List<RFRange> findTopLosers() {
        return mapper.findTopLosers();
    }
}
